//------------------------------------------------------------------------------
// @description 管理员端-主页
//------------------------------------------------------------------------------
<script setup name="administrator">
//------------------------------------------------------------------------------
// 模块引入
//------------------------------------------------------------------------------
import { ref } from 'vue';
import { useAdmMenuLoading } from '@/stores/administrator';
import comHeader from '@/views/comHeader.vue';
import admMenuBar from './admMenuBar.vue';
import admContent from '@/components/administrator/admContent.vue';
//------------------------------------------------------------------------------
// @description 超级管理员端-管理员管理
//------------------------------------------------------------------------------
const admMenuLoading = useAdmMenuLoading();
//头像选项
const avaterData = ref({
    imgUrl: '../assets/image/defaultAvator.webp',
    name: '管理员'
})
</script>

<template>
    <div class="administrator">
        <comHeader :avaterData="avaterData"></comHeader>
        <div class="administrator-layout">
            <admMenuBar></admMenuBar>
            <admContent 
            v-loading="admMenuLoading.menuLoading" 
            element-loading-text="数据加载中..."
            ></admContent>
        </div>
    </div>
</template>

<style lang="scss">
.administrator {
    width: 100vw;
    height: 100vh;
    .administrator-layout {
        width: 100%;
        height: calc(100% - 80px);
        display: flex;
        justify-content: space-between;
        background-color: #f0f2f5;
    }
}
</style>